package com.taxicall.mocks;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

import com.taxicall.entities.Taxi;
import com.taxicall.entities.TaxiLocation;

public class TaxicallMocks {

	// TODO: addresses and points are not in sync
	public List<TaxiLocation> getStartLocations(){
		List<TaxiLocation> list = new ArrayList<TaxiLocation>();
		
		TaxiLocation location = new TaxiLocation();
		location.setAddress("Nayarinou 19, Marousi");
		location.setLatitude(38.0206163d);
		location.setLongitude(23.7910637d);
		list.add(location);
		
		location = new TaxiLocation();
		location.setAddress("sintagma");
		location.setLatitude(37.975074);
		location.setLongitude(23.734047);
		list.add(location);
		
		location = new TaxiLocation();
		location.setAddress("Pathsiwn 10, Anw Pathsia");
		location.setLatitude(37.97655597d);
		location.setLongitude(23.71497899d);
		list.add(location);
		
		return list;
	}

	public List<Taxi> getTaxis() throws IOException {
		List<Taxi> taxis = new ArrayList<Taxi>();
		List<TaxiLocation> locations = getStartLocations();
		
		Taxi taxi;
		for(int i = 0; i < 3; i++){
			String address = "0.0.0."+i;
			taxi = new Taxi(address);
			taxi.setLocation(locations.get(i));
			taxis.add(taxi);
		}
		
		return taxis;
	}
}

